How do I import tables from the excel into the doors as ole table

Hello, everyone 

I'm developing a script to import a excel (xls)document into doors, I'm able to import all the objects which has text but I'm unable to import the tables from the excel to DOORS as OLE table.

It would be great help if you guy's help me with this Thank you.

 


Thajuddin - Thu Aug 02 00:14:14 EDT 2018

Re: How do I import tables from the excel into the doors as ole table
davidcs - Fri Aug 03 09:20:50 EDT 2018

Save the table and then there are two options to insert it into DOORS. Use the first option if there is no accompanying text, if there is a combination of text and OLEs you can reconstruct the object using the second method.

bool oleInsert(Object o,[attrRef],string fileName,[bool insertAsIcon]) 
bool oleInsert(Buffer bufInsert, string fileName, int charPos)

Re: How do I import tables from the excel into the doors as ole table
Thajuddin - Wed Aug 08 03:02:47 EDT 2018

davidcs - Fri Aug 03 09:20:50 EDT 2018

Save the table and then there are two options to insert it into DOORS. Use the first option if there is no accompanying text, if there is a combination of text and OLEs you can reconstruct the object using the second method.

bool oleInsert(Object o,[attrRef],string fileName,[bool insertAsIcon]) 
bool oleInsert(Buffer bufInsert, string fileName, int charPos)

Thank you davidcs for your response.  I have tried with the first option I can able to insert the table .
But is there any option to insert table directly from the excel by selecting proper table or by reading proper cells,  without saving separately  

Thank you

Re: How do I import tables from the excel into the doors as ole table
davidcs - Thu Aug 09 08:18:22 EDT 2018

Yes, that is an option using OLE automation via DXL. You could read the tables out and then insert them as an OLE object as discussed before. Search the forum for examples for interfacing with Excel. Also, here is a link to a script that interfaces with Excel you can you to get started.

http://galactic-solutions.com/downloads/GalacticDownloadExcel.htm

 

 

Re: How do I import tables from the excel into the doors as ole table
Thajuddin - Sat Aug 18 01:56:38 EDT 2018

davidcs - Thu Aug 09 08:18:22 EDT 2018

Yes, that is an option using OLE automation via DXL. You could read the tables out and then insert them as an OLE object as discussed before. Search the forum for examples for interfacing with Excel. Also, here is a link to a script that interfaces with Excel you can you to get started.

http://galactic-solutions.com/downloads/GalacticDownloadExcel.htm

 

 

Thank you davidcs I will try with that link